package com.senno.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.senno.entity.UserInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserInfoMapper extends BaseMapper<UserInfo> {

    @Select("select * from user_info where username=#{username}")
    UserInfo selectByUserName(@Param("username") String username);

    @Insert("insert into user_info values(#{id},#{username},#{password})")
    void addUser(UserInfo user);
}
